public class UseSeason {
    public String getChineseSeason(Season season) {
        StringBuffer buffer = new StringBuffer(128);
        int code = season.getCode();
//        System.out.println("code = " + code);

        switch (code) {
            case 1:
                buffer.append("春天：春暖花开");
                break;
            case 2:
                buffer.append("夏天：烈日炎炎");
                break;
            case 3:
                buffer.append("秋天：秋风飒爽");
                break;
            case 4:
                buffer.append("冬天：寒风呼啸");
                break;
            default:
                break;
        }
        return buffer.toString();
    }

    public static void main(String[] args) {
        UseSeason useSeason = new UseSeason();
        Season[] values = Season.values();
        System.out.println(values.length);
        for (int i = 0; i < values.length; i++) {
            System.out.println(useSeason.getChineseSeason(values[i]));
        }
    }
}
